import request from '@/utils/request'

const apiUrl="/business/expand"
// 查询身份信息列表
export function listExpand(query) {
  return request({
    url: apiUrl+'/page',
    method: 'get',
    params: query
  })
}
// 查询所有工厂信息
export function listAllDepo() {
  return request({
    url: apiUrl+'/listAllDepo',
    method: 'get',
  })
}

export function listAllLocator(id) {
  return request({
    url: apiUrl+'/listAllLocator?id='+id,
    method: 'get',
  })
}

export function listAllExpand() {
  return request({
    url: apiUrl+'/listAllExpand',
    method: 'get',
  })
}

// 查询所有身份枚举
export function listTypeEnum() {
  return request({
    url: apiUrl+'/listTypeEnum',
    method: 'get',
  })
}
// 查询身份信息详细
export function getExpand(id) {
  return request({
    url: apiUrl+'/toEdit?id=' + id,
    method: 'get'
  })
}

// 新增身份信息
export function addExpand(data) {
  return request({
    url: apiUrl+'/add',
    method: 'post',
    data: data
  })
}

// 修改身份信息
export function updateExpand(data) {
  return request({
    url: apiUrl+'/edit',
    method: 'post',
    data: data
  })
}

// 删除身份信息
export function delExpand(id) {
  return request({
    url: '/business/expand/' + id,
    method: 'delete'
  })
}

